#include <iostream>
#include <stack>
using namespace std;

class Solution {
public:
    int Fibonacci(int n) {
        if (n == 0) {
            return 0;
        } else if (n == 1) {
            return 1;
        }
        int a = 0;
        int b = 1;
        while (n > 1) {
            int c = a + b;
            a = b;
            b = c;
            n--;
        }
        return b;
    }
};

int main() {
    cout << Solution().Fibonacci(0) << endl;
    cout << Solution().Fibonacci(1) << endl;
    cout << Solution().Fibonacci(2) << endl;
    cout << Solution().Fibonacci(3) << endl;
    cout << Solution().Fibonacci(4) << endl;
    cout << Solution().Fibonacci(5) << endl;
    cout << Solution().Fibonacci(6) << endl;
    cout << Solution().Fibonacci(7) << endl;
    cout << Solution().Fibonacci(8) << endl;
    cout << Solution().Fibonacci(9) << endl;
    cout << Solution().Fibonacci(10) << endl;
    return 0;
}